export default {
  namespaced: true,
  state: {
    userType:"",
    id: 0,
    name: '',
    avatar: ''
  },
  mutations: {
    updateId(state, id) {
      state.id = id;
    },
    updateName(state, name) {
      state.name = name;
    },
    updateAvatar(state, avatar) {
      state.avatar = avatar;
    },
    updateUserType(state, userType) {
      state.userType = userType;
    }
  }
}
